Automattic\WooCommerce\Blocks\BlockTypesController S

Total Complexity 43
Dependencies 9
Dependents 1
Total lines 458
Lines of code 288
Logical lines of code 100
Comment lines 122
Methods 12
Properties 3

Methods 12

Method Rating Maintainability Complexity Lines of code
get_block_types()
A
32 6 136
add_data_attributes()
A
48 11 31
get_registered_blocks_with_woocommerce_parent()
S
52 6 28
has_block_variation()
S
58 6 15
init()
S
55 3 20
block_should_have_data_attributes()
S
62 3 10
register_blocks()
S
68 2 7
redirect_to_field()
S
69 2 6
hide_legacy_widgets_with_block_equivalent()
S
62 1 14
register_block_categories()
S
62 1 13
__construct()
S
74 1 5
delete_product_transients()
S
81 1 3